'use strict';
const db=uniCloud.database()
exports.main = async (event, context) => {
	
	let {_id,name,sex,birth,die,title,age,nature,grade,novel,dieyear,birthyear,presonimg,jianjie} = event;
	let novels = novel;

	const collection = db.collection('novelpersonlist'); // 替换为你的集合名称
	
	const res = await collection.doc(_id).update({
		name,sex,birth,die,title,age,nature,grade,novel,dieyear,birthyear,presonimg,jianjie
	});
	return res;
};


